/**
 * int	I
 * float	F
 * boolean	Z
 * String	Ljava/lang/String;
 */
export  default class JsNativeBridge   {


    /**
     * 
     * @param className 
     * @param methodName 
     * @param parameters 
     * @param methodSignature 
     */
    static callStaticMethod(className:string, methodName:string,parameters,methodSignature?:string){
        if(!cc.sys.isNative){
            return -1;
        }
        cc.log(" JsNativeBridge callStaticMethod ")
        if(cc.sys.os == cc.sys.OS_IOS){
            let result = jsb.reflection.callStaticMethod(className,methodName,parameters);
            if(result){
                cc.log("callStaticMethod ios  ",result);
            }
        }else{
            cc.log(" JsNativeBridge callStaticMethod adroid ")
            let result = jsb.reflection.callStaticMethod(className, methodName, methodSignature, parameters)
            if(result){
                cc.log("callStaticMethod android  ",result);
                return result;
            }
        }
    }


    
    
    
    
    }

